package org.myhibernate.entity;

import java.util.UUID;

public class UserEntity 
{
	private String id="";
	private String name="";
	private int age=0;
	private String sex="";
	public String getId() 
	{ 
		if ((id==null)||("".equals(id)))
		{
			id=UUID.randomUUID().toString();
		}
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	
}
